﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAO;
using LinQ_DTO;
namespace BUS
{
    public class MembershipBUS
    {

        public List<aspnet_Membership> LayDanhSach()
        {
            MembershipDAO mDao = new MembershipDAO();
            return mDao.LayDanhSach();
        }

        public aspnet_Membership LayTheoUserId(Guid userId)
        {
            MembershipDAO mDao = new MembershipDAO();
            return mDao.LayTheoUserId(userId);

        }


        public void Them(aspnet_Membership temp)
        {
            MembershipDAO mDao = new MembershipDAO();
            mDao.Them(temp);

        }

        public void Xoa(aspnet_Membership temp)
        {

            MembershipDAO mDao = new MembershipDAO();
            mDao.Xoa(temp);

        }

        public void CapNhat(aspnet_Membership temp)
        {
            MembershipDAO mDao = new MembershipDAO();
            mDao.CapNhat(temp);

        }
        

///////////////////////////////CODE BY NMCUONG/////////////////////////////


        public void CapNhatDiemTichLuy(aspnet_Membership Membership)
        {
            MembershipDAO MemDao = new MembershipDAO();
            MemDao.CapNhatDiemTichLuy(Membership);
        }

    }
}
